<% content_for :title do%><%= h @book.title%><% end %>
<h1><%= h @book.title %></h1>
<p>Ecrit par <%= h @book.author %></p>

<p><%= @book.created_at.to_s(:long) %></p>
	
<p> <strong>Catégorie(s) :</strong> 
<%= @book.categories.collect { |categorie| link_to categorie.label, categorie }.join (", ") %> 
</p>
<%= link_to "Emprunter ce livre", borrow_book_path(@book), :method => :put %> |
<%= link_to 'Send free ebook', { :controller => "newsletter", :action => "send_free_ebook", :id => @book } %> |
<%= link_to 'Edit', edit_book_path(@book) %> |
<%= link_to 'Back', books_path %>
